Stored Procedures [dbo].[asi_FindUnreceiptedPayments]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@contactKeyuniqueidentifier16
SQL Script
CREATE PROCEDURE [dbo].[asi_FindUnreceiptedPayments]
@contactKey uniqueidentifier

AS

SELECT * FROM PaymentMain p
LEFT OUTER JOIN ReceiptLine rl on p.PaymentKey = rl.PaymentKey
WHERE p.PayorContactKey = @contactKey
AND  rl.ReceiptLineKey is null

GO
Uses